<?php

namespace app\common\model;

use think\Model;

class AdminModel extends Model
{
    protected $table = 'admin_user';
    protected $autoWriteTimestamp = 'timestamp';

    /**
     * 快捷条件查询
     * User: zhouyao
     * Date: 2018/9/8
     * Time: 下午12:18
     * @param $query
     */
    public function scopeIsDel($query)
    {
        $query->where('is_del', '=', 1)->where('status', '=', 1);
    }
}
